package cn.xuchunh.campusbbs.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by XuChunH on 2015/8/31.
 */
public class User implements Serializable {

    public static final int GENDER_SECRET = 0;
    public static final int GENDER_MALE = 1;
    public static final int GENDER_FEMALE = 2;

    private boolean logined = false;

    private int userId;
    private String userName;
    private String avatar;
    //积分
    private int credits;
    private String userTitle;
    //水滴
    private int extCredits;

    private int flag;
    private String email;
    private int status;
    private int gender;
    private int topicNum;
    private int photoNum;
    private int replyPostsNum;
    private int essenceNum;
    private int friendNum;
    private int followNum;
    private int level;

    private boolean black;
    private boolean follow;
    private boolean friend;

    private List<SimpleData> profileList;
    private List<SimpleData> creditsList;

    public User() {
        profileList = new ArrayList<>();
        creditsList = new ArrayList<>();
    }

    public void addProfileInfo(SimpleData simpleData){
        profileList.add(simpleData);
    }

    public void addCreditsInfo(SimpleData simpleData){
        creditsList.add(simpleData);
    }

    public List<SimpleData> getCreditsList() {
        return creditsList;
    }

    public void setCreditsList(List<SimpleData> creditsList) {
        this.creditsList = creditsList;
    }

    public List<SimpleData> getProfileList() {
        return profileList;
    }

    public void setProfileList(List<SimpleData> profileList) {
        this.profileList = profileList;
    }

    public boolean isLogined() {
        return logined;
    }

    public void setLogined(boolean logined) {
        this.logined = logined;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getCredits() {
        return credits;
    }

    public void setCredits(int credits) {
        this.credits = credits;
    }

    public String getUserTitle() {
        return userTitle;
    }

    public void setUserTitle(String userTitle) {
        this.userTitle = userTitle;
    }

    public int getExtCredits() {
        return extCredits;
    }

    public void setExtCredits(int extCredits) {
        this.extCredits = extCredits;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getEssenceNum() {
        return essenceNum;
    }

    public void setEssenceNum(int essenceNum) {
        this.essenceNum = essenceNum;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getFollowNum() {
        return followNum;
    }

    public void setFollowNum(int followNum) {
        this.followNum = followNum;
    }

    public int getFriendNum() {
        return friendNum;
    }

    public void setFriendNum(int friendNum) {
        this.friendNum = friendNum;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getPhotoNum() {
        return photoNum;
    }

    public void setPhotoNum(int photoNum) {
        this.photoNum = photoNum;
    }

    public int getReplyPostsNum() {
        return replyPostsNum;
    }

    public void setReplyPostsNum(int replyPostsNum) {
        this.replyPostsNum = replyPostsNum;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTopicNum() {
        return topicNum;
    }

    public void setTopicNum(int topicNum) {
        this.topicNum = topicNum;
    }

    public boolean isBlack() {
        return black;
    }

    public void setBlack(boolean black) {
        this.black = black;
    }

    public boolean isFollow() {
        return follow;
    }

    public void setFollow(boolean follow) {
        this.follow = follow;
    }

    public boolean isFriend() {
        return friend;
    }

    public void setFriend(boolean friend) {
        this.friend = friend;
    }
}
